import request from '@/utils/request'

// 查询页面权限列表
export function listAuthorize(query) {
  return request({
    url: '/UDform/authorize/list',
    method: 'get',
    params: query
  })
}

// 查询页面权限详细
export function getAuthorize(id) {
  return request({
    url: '/UDform/authorize/' + id,
    method: 'get'
  })
}

// 新增页面权限
export function addAuthorize(data) {
  return request({
    url: '/UDform/authorize',
    method: 'post',
    data: data
  })
}

// 修改页面权限
export function updateAuthorize(data) {
  return request({
    url: '/UDform/authorize',
    method: 'put',
    data: data
  })
}

// 删除页面权限
export function delAuthorize(id) {
  return request({
    url: '/UDform/authorize/' + id,
    method: 'delete'
  })
}
